package com.zzj.ecology.commons.consts;

/**
 * @ClassName UrlConstants
 * @Description TODO
 * @Author zhijun zeng at 2020/3/13
 * @Version 1.0
 **/
public interface UrlConstants {

    public class UserUrl {
        public static final String LIST = "/ajax/admin/sysUser/list";
        public static final String LIST_SEARCH = "/ajax/admin/sysUser/listSearch";
        public static final String CREATE = "/ajax/admin/sysUser/create";
        public static final String CHECK_USERNAME_EXIST = "/ajax/admin/sysUser/checkUsernameExist";
        public static final String DELETE_BY_IDS = "/ajax/admin/sysUser/deleteByIds";
        public static final String UPDATE = "/ajax/admin/sysUser/update";
        public static final String REGRANT_USER_ROLES = "/ajax/admin/sysUser/regrantUserRoles";
        public static final String INITIALIZE_PASSWORD = "/ajax/admin/sysUser/initializePassword";
        public static final String UPDATE_USERSTATUS = "/ajax/admin/sysUser/updateUserStatus";
    }
    public class RoleUrl{
        public static final String LIST = "/ajax/admin/sysRole/list";
        public static final String FIND_TRANSFER_LIST = "/ajax/admin/sysRole/findTransferList";
        public static final String CREATE = "/ajax/admin/sysRole/create";
        public static final String CHECK_ROLECODE_EXIST = "/ajax/admin/sysRole/checkRoleCodeExist";
        public static final String DELETE_BY_IDS = "/ajax/admin/sysRole/deleteByIds";
        public static final String UPDATE = "/ajax/admin/sysRole/update";
        public static final String REGRANT_MENUS = "/ajax/admin/sysRole/reGrantMenus";
        public static final String FIND_MENUS_BY_ROLEID = "/ajax/admin/sysRole/findMenusByRoleId";
    }

    public class MenuUrl {
        // 查询所有菜单分页数据
        public static final String LIST = "/ajax/admin/sysMenu/list";
        // 查询当前登录用户的菜单权限
        public static final String LOGIN_USER_MENU_LIST = "/ajax/admin/sysMenu/findOkTabMenuListByUsername";
        // 查询 菜单 下拉列表数据
        public static final String SELECTBOX_LIST = "/ajax/admin/sysMenu/findNonButtonSelectBoxList";
        // 创建新菜单 并赋予 新的权限
        public static final String CREATE_AND_GRANT = "/ajax/admin/sysMenu/createAndGrant";
        // 修改菜单基础数据
        public static final String UPDATE_AND_GRANT = "/ajax/admin/sysMenu/updateAndGrant";
        // 重新修改菜单权限
        public static final String RE_PERMS = "/ajax/admin/sysMenu/rePerms";
        // 查询 当前登录用户 的所有按钮权限(以字符形式 - 分隔)
        public static final String FIND_USER_MENU_BUTTONS = "/ajax/admin/sysMenu/findMenuButtons";
        // 批量删除数据
        public static final String DELETE_BY_IDS = "/ajax/admin/sysMenu/deleteByIds";
        public static final String LAYTREE = "/ajax/admin/sysMenu/laytree";
        public static final String DTREE = "/ajax/admin/sysMenu/dtree";
        public static final String TREE_TABLE = "/ajax/admin/sysMenu/treeTable";

    }
    public class PermissionUrl{
        public static final String LIST = "/ajax/admin/sysPermission/list";
        // 添加菜单，展示 select 下拉框
        public static final String SELECT_BOX_LIST = "/ajax/admin/sysPermission/findPermissionListSelectDisplay";
        public static final String DTREE = "/ajax/admin/sysPermission/dtree";
        public static final String CREATE = "/ajax/admin/sysPermission/create";
        public static final String UPDATE = "/ajax/admin/sysPermission/update";
        // 批量删除数据
        public static final String DELETE_BY_IDS = "/ajax/admin/sysPermission/deleteByIds";
        public static final String FIND_BY_URLID = "/ajax/admin/sysPermission/findByUrlId";
    }
    public class UrlUrl{
        public static final String LIST = "/ajax/admin/sysUrl/list";
        public static final String CREATE_AND_GRANT = "/ajax/admin/sysUrl/createAndGrant";
        public static final String UPDATE_AND_GRANT = "/ajax/admin/sysUrl/updateAndGrant";
        // 批量删除数据
        public static final String DELETE_BY_IDS = "/ajax/admin/sysUrl/deleteByIds";
        public static final String CHECK_EXISTS = "/ajax/admin/sysUrl/checkExists";
    }

    public class DeptUrl{
        public static final String LIST = "/ajax/admin/sysDept/list";
        public static final String DTREE = "/ajax/admin/sysDept/dtree";
        public static final String CHECK_EXISTS = "/ajax/admin/sysDept/checkExists";
        public static final String CREATE = "/ajax/admin/sysDept/create";
        public static final String UPDATE = "/ajax/admin/sysDept/update";
        // 批量删除数据
        public static final String DELETE_BY_IDS = "/ajax/admin/sysDept/deleteByIds";
    }
    public class PostUrl{
        public static final String LIST = "/ajax/admin/sysPost/list";
        //public static final String DTREE = "/ajax/admin/sysPost/dtree";
        public static final String SELECTBOX_LIST = "/ajax/admin/sysPost/selectBoxList";
        public static final String CHECK_EXISTS = "/ajax/admin/sysPost/checkExists";
        public static final String CREATE = "/ajax/admin/sysPost/create";
        public static final String UPDATE = "/ajax/admin/sysPost/update";
        // 批量删除数据
        public static final String DELETE_BY_IDS = "/ajax/admin/sysPost/deleteByIds";
    }
    public class LoginInforUrl {
        public static final String LIST = "/ajax/admin/sysLoginInfor/list";
        public static final String DELETE_BY_IDS = "/ajax/admin/sysLoginInfor/deleteByIds";
    }
    public class OperLogUrl {
        public static final String LIST = "/ajax/admin/sysOperLog/list";
        public static final String DELETE_BY_IDS = "/ajax/admin/sysOperLog/deleteByIds";
    }
    public class ServerUrl {
        public static final String SERVER_INFO = "/ajax/admin/sysServer/getServerInfo";
    }

    public class UserOnlineUrl {
        public static final String ONLINE_SESSIONS = "/ajax/admin/sysUserOnline/sessions";
    }









            // --------------------------------- MENU 停用
    String MENU_CREATE  = "/admin/sysMenu/ajax/create";
    String MENU_PAGE_LIST = "/admin/sysMenu/ajax/findPageList";
    String MENU_PARENTS_LIST_DETAIL = "/admin/sysMenu/ajax/findParentsListDetail";
    String MENU_LAYTREE_CHILDRENS_LIST_DETAIL = "/admin/sysMenu/ajax/findLayTreeChildrensListDetail";
    String MENU_FIND_LAYTREE_MENUS_BY_ROLEID = "/admin/sysMenu/ajax/findMenusByRoleId";
    // --------------------------------- MENU 使用
    String MENU_FIND_OKTAB_MENU_LIST_BY_USERNAME = "/ajax/admin/sysMenu/findOkTabMenuListByUsername";








    // index.html 页面上的 修改 username显示
    String ADMIN_FIND_BY_USERNAME = "/admin/sysUser/ajax/findByUsername";
    String ADMIN_UPDATE_ROLE_GRANT = "/admin/sysUser/ajax/updateAndRoleGrant";
    // index.html 页面加载用户对应的菜单 ------------------- 停用
    String ADMIN_MENU_LIST_ROLE_BY_USERNAME = "/ajax/admin/sysUser/fingMenuListRoleByUserName";

    //
    String ROLE_FIND_TRANSFER_LIST_BY_USERID = "/admin/sysRole/ajax/findTransferListByUserId";






    // 分页查询 所有菜单按钮列表
    String MENU_BUTTON_WITHOUT_CHILDRENS_PAGE_LIST = "/ajax/admin/sysMenuButton/findWithoutChildrensPageList";
    // 批量删除 菜单 及 菜单对应权限
    String MENU_BUTTON_DELETE_AND_GRANT_BY_IDS = "/ajax/admin/sysMenuButton/deleteAndGrantByIds";
    // 创建新的 菜单 并 赋予 权限 并 指定 父集
    String MENU_BUTTON_CREATE_AND_GRANT = "/ajax/admin/sysMenuButton/createAndGrant";
    // index.html 页面加载用户对应的菜单
    String MENU_BUTTON_LIST_ROLE_BY_USERNAME = "/ajax/admin/sysMenuButton/fingMenuListRoleByUserName";
    // 添加菜单，展示 select 下拉框
    String MENU_BUTTON_MENU_LIST_SELECT_DISPLAY = "/ajax/admin/sysMenuButton/findMenuListSelectDisplay";
    // 通过ID 查询 menu
    String MENU_BUTTON_FIND_BY_ID = "/ajax/admin/sysMenuButton/findById";
    // 查询 treetable 所需要数据
    String MENU_BUTTON_TREETABLE_LIST = "/ajax/admin/sysMenuButton/findTreeTableList";
    // 查询当前页面所拥有的按钮
    String MENU_BUTTON_CURRPAGE_BUTTON_PERMS = "/ajax/admin/sysMenuButton/findCurrPageButtonPerms";


    String ROLE_UPDATE_MENUGRANT = "/admin/sysRole/ajax/updateAndMenuGrant";


}
